import request from '@/utils/request'

// 查询防护列表
export function listDefend(query) {
  return request({
    url: '/insurance/defend/list',
    method: 'get',
    params: query
  })
}

// 查询防护详细
export function getDefend(defendId) {
  return request({
    url: '/insurance/defend/' + defendId,
    method: 'get'
  })
}

// 新增防护
export function addDefend(data) {
  return request({
    url: '/insurance/defend',
    method: 'post',
    data: data
  })
}

// 修改防护
export function updateDefend(data) {
  return request({
    url: '/insurance/defend',
    method: 'put',
    data: data
  })
}

// 删除防护
export function delDefend(defendId) {
  return request({
    url: '/insurance/defend/' + defendId,
    method: 'delete'
  })
}
